package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 患者康复方案记录表
 * </p>
 *
 * @author hsx
 * @since 2022-08-30
 */
@Getter
@Setter
@TableName("ncg_app_userplan")
@ApiModel(value = "AppUserplan对象", description = "患者康复方案记录表")
public class AppUserplan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("康复类型：1-饮食;2-运动;3-药物")
    private String type;

    @ApiModelProperty("是否修改药方")
    private String isupd;

    @ApiModelProperty("方案名称")
    @TableField("`name`")
    private String name;

    @ApiModelProperty("方案内容")
    private String conaint;

    @ApiModelProperty("是否有辅助方案")
    private String explan;

    @ApiModelProperty("案例id")
    private Long caseid;

    @ApiModelProperty("患者id")
    private Long uid;

    @ApiModelProperty("用户姓名")
    private String username;

    @ApiModelProperty("用户电话")
    private String uphone;

    @ApiModelProperty("用户地址")
    private String uaddress;

    @ApiModelProperty("身份证")
    private String idno;

    @ApiModelProperty("医院id")
    private Long hid;

    @ApiModelProperty("医生id")
    private Long doctorid;

    @ApiModelProperty("用户姓名")
    private String doctorname;

    @ApiModelProperty("电话号码")
    private String doctorphone;

//      @ApiModelProperty("创建时间")
//      private LocalDateTime createtime;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")                    // 表示返回时间类型
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")      // 表示接收时间类型
    private LocalDateTime createtime;

    @ApiModelProperty("状态 1-有效;2-无效")
    @TableField("`status`")
    private Integer status;

    @ApiModelProperty("删除: 0-正常;1-删除")
    private int isdelete;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")                    // 表示返回时间类型
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")      // 表示接收时间类型
    private LocalDateTime updatetime;
}
